package com.chenxin.wms.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chenxin.common.annotation.Excel;
import com.chenxin.common.core.domain.WmsBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 客户资料对象 wms_customer
 *
 * @author gry
 * @date 2025-04-10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("wms_customer")
public class CustomerEntity extends WmsBaseEntity {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Long customerId;

    /**
     * 客户编号
     */
    @Excel(name = "客户编号")
    private String customerNo;

    /**
     * SAP客户代码
     */
    @Excel(name = "SAP客户代码")
    private String sapCustomerCode;

    /**
     * 客户名称
     */
    @Excel(name = "客户名称")
    private String customerName;

    /**
     * 客户地址
     */
    @Excel(name = "客户地址")
    private String customerAddress;

    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private Integer isActive;

    /**
     * 联系人
     */
    @Excel(name = "联系人")
    private String contactPerson;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String contactPhone;

    /**
     * 联系人邮箱
     */
    @Excel(name = "联系人邮箱")
    private String contactEmail;
}
